package com.cusc.module_apply.adapter;

import androidx.annotation.NonNull;
import androidx.fragment.app.FragmentManager;

import com.cusc.module_apply.mvvm.ui.fragment.ApplyMainFragment;
import com.tcgroup.phone.base_core.adapter.AbstractVpFragmentAdapter;
import com.tcgroup.phone.base_core.framework.mvvm.fragment.BaseMvvmFragment;

import java.util.ArrayList;

/**
 * 作者: wangfei
 * 创建时期: 2020/4/20.
 * 包名: com.cusc.module_apply.adapter
 * 类名: OSAndroidMvvm
 */
public class ApplyMainVPAdapter extends AbstractVpFragmentAdapter<ApplyMainFragment> {


    public ApplyMainVPAdapter(@NonNull FragmentManager fm, int behavior) {
        super(fm, behavior);
    }

    public ApplyMainVPAdapter(@NonNull FragmentManager fm, ArrayList<ApplyMainFragment> mFragments) {
        super(fm, mFragments);
    }

    @Override
    protected BaseMvvmFragment getFragment(int position) {
        return mFragments.get(position);
    }
}
